import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/hello',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/wshow',
      name: 'WShow',
      component: () => import('@/views/Main')
    },
    {
      path: '/login',
      name: 'Login',
      component: () => import('@/views/Login')
    },
    {
      path: '/videos/show',
      name: 'videos',
      component: () => import('../views/videos/VideoApp')
    },
    {
      path: '/videos/upload',
      name: 'upload',
      component: () => import('../views/videos/VideoUpload')
    }
  ]
})
